<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>模板语法</title>
		<script src="../js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<!-- 准备一个容器 -->
		<div id="root">
			<h1>插值语法</h1>
			<h3>你好，{{name}}</h3>
			<hr >
			<h1>指令语法</h1>
			<a v-bind:href="url" x="hello" >点我去百度1</a>
		</div>
		<script type="text/javascript">
			Vue.config.productionTip = false;
			new Vue({
				el:"#root",
				data:{
					name:"jack",
					url:"http://www.baidu.com",
					hello: "你好"
				}
			})
		</script>
	</body>
	
</html>
